#include "userinfo.h"

UserInfo::UserInfo(QObject *parent) : QObject(parent)
{

}

UserInfo::UserInfo(QString name, QString pwd)
{
    this->userName = name;
    this->password = pwd;
}

UserInfo::UserInfo(int id, QString name, QString pwd)
{
    this->userId = id;
    this->userName = name;
    this->password = pwd;
}

UserInfo::UserInfo(int id, QString name, QString pwd, QDateTime createtime)
{
    this->userId = id;
    this->userName = name;
    this->password = pwd;
    this->createTime = createtime;
}

void UserInfo::setUserId(int id)
{
    this->userId = id;
}

int UserInfo::getUserId()
{
    return this->userId;
}

void UserInfo::setUserName(QString name)
{
    this->userName = name;
}

QString UserInfo::getUserName()
{
    return this->userName;
}

void UserInfo::setPassword(QString pwd)
{
    this->password = pwd;
}

QString UserInfo::getPassword()
{
    return this->password;
}
